<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
<script src="jquery-3.3.1.min.js"></script>
<script>
	(async ()=> {
		alert("欢迎啊")

	    let arr = await $.ajax({url:'data/1.txt',dataType:'json'});

		alert("接收到了数组"+arr);

		let json = await $.ajax({url:'data/2.txt',dataType:'json'});
			alert("json也读完了");
		console.log(json);
	})();
</script>
</body>
</html>